/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.domain.req;

import com.xy.lang.validation.UpdateChecks;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *
 *
 * @author zgy
 * @date 2022-1-11
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveTechniqueRequest {

    /**
     * 生产工艺id
     */
    @NotNull(groups = UpdateChecks.class)
    private Long techniqueId;
    /**
     * 生产货品Id
     */
    @NotNull
    private Long goodsId;
    /**
     * 状态：0-存盘，1-启用，2-停用
     */
    @Max(127)
    private Integer status;
    /**
     * 应用范围：0-未定义，1-生产，2-研发，3-质检，9-其它
     */
    private Integer scope;
    /**
     * 审核状态：0-待审核，1-审核通过，2-审核不通过
     */
    @Max(127)
    private Integer auditStatus;
    /**
     * 审核评语
     */
    @Length(max = 500)
    private String auditComment;

    private List<SaveTechniqueDocumentRequest> techniqueDocumentList;

}
